.class public Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsFullscreenOverlay;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;
.source "RewardsFullscreenOverlay.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay",
        "<",
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;",
        ">;"
    }
.end annotation


# direct methods
.method public constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)V
    .locals 0
    .parameter "child"

    .prologue
    .line 38
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;-><init>(Lcom/burstly/lib/util/UiSafeWebView;)V

    .line 39
    return-void
.end method


# virtual methods
.method protected bridge synthetic addChildToLayout(Landroid/view/ViewGroup;Landroid/view/View;)Landroid/view/View;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    check-cast p2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    .end local p2
    invoke-virtual {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsFullscreenOverlay;->addChildToLayout(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method protected addChildToLayout(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)Landroid/view/View;
    .locals 5
    .parameter "containerLayout"
    .parameter "childView"

    .prologue
    .line 43
    invoke-super {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;->addChildToLayout(Landroid/view/ViewGroup;Landroid/view/View;)Landroid/view/View;

    move-result-object v0

    .line 44
    .local v0, container:Landroid/view/View;
    instance-of v1, v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;

    if-eqz v1, :cond_0

    move-object v1, v0

    .line 45
    check-cast v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;

    invoke-virtual {p2, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setCloseButtonControl(Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;)V

    .line 52
    :goto_0
    return-object v0

    .line 47
    :cond_0
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsFullscreenOverlay;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsFullscreenOverlay;->TAG:Ljava/lang/String;

    const-string v3, "Rewards interstitial view doesn\'t implement ICloseControl interface, so reward creatives won\'t be able to hide/show defult close button if any."

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method protected createCloseableContainer()Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer",
            "<",
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;",
            ">;"
        }
    .end annotation

    .prologue
    .line 57
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsCloseableContainer;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsFullscreenOverlay;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsCloseableContainer;-><init>(Landroid/content/Context;)V

    .line 58
    .local v0, container:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsCloseableContainer;
    const/high16 v1, -0x100

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsCloseableContainer;->setBackgroundColor(I)V

    .line 59
    return-object v0
.end method
